Skip to content

[BUGFIX beta] use correct syntax for computed.test.ts #20676

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 4, 2024

Conversation

chriskrycho
Copy link
Contributor

I thought this syntax didn’t work before, but possibly it was just a warning. In any case, I believe this should fix the failures with nightly TS runs. cc. @jamescdavis @gitKrystan @wagenet

@chriskrycho chriskrycho force-pushed the chriskrycho/fix-ts-nightly branch from a07e7ad to 41bb1b0 Compare April 4, 2024 12:57
@chriskrycho
Copy link
Contributor Author

Since it appears that nightly testing was removed from CI, rather than made optional, the last time the project had TS nightly failures, I ran the same commands locally as the nightly TS build does:

$ pnpm add --save-dev typescript@next --workspace-root
$ pnpm run type-check

> ember-source@5.9.0-alpha.1 type-check /Users/chris/dev/emberjs/ember.js
> npm-run-all type-check:*


> ember-source@5.9.0-alpha.1 type-check:internals /Users/chris/dev/emberjs/ember.js
> tsc --noEmit


> ember-source@5.9.0-alpha.1 type-check:types /Users/chris/dev/emberjs/ember.js
> pnpm build:types && tsc --noEmit --project type-tests


> ember-source@5.9.0-alpha.1 build:types /Users/chris/dev/emberjs/ember.js
> node types/publish.mjs

This passed (and it did not before).

@chancancode
Copy link
Member

Double checked the current snapshot of the decorator spec to be sure, and yeah, the previous syntax shouldn't have been allowed:

Screen Shot 2024-04-04 at 4 58 32 PM

@chancancode chancancode merged commit 2e6cbb7 into main Apr 4, 2024
22 checks passed
@chancancode chancancode deleted the chriskrycho/fix-ts-nightly branch April 4, 2024 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants